const Home=()=>import('@/views/Home')
const Login=()=>import('@/views/Login')
const Register=()=>import('@/views/Register')
const Search=()=>import('@/views/Search')

export default [
  {
    path:'/home',
    name:'Home',
    component:Home
  },
  {
    path:'/login',
    name:'Login',
    component:Login
  },
  {
    path:'/register',
    name:'Register',
    component:Register
  },
  {
    path:'/search/:keyword?',
    name:'search',
    component:Search
  },
  {
    path:'*',
    redirect:'/home'
  }
]